import request from '@/utils/request'
console.log(request)

// export const login = data => {
//   return request({
//     method: 'POST',
//     url: '/app/v1_0/authorizations',
//     data:data
//   })
// }
// 2. 调用登录接口的函数
export const login = data => {
  return request({
    method: 'POST',
    url: '/v1_0/authorizations',
    data
  })
}
//调获取验证码的接口的函数                
export const sendSms = mobile => {
  return request({
    method: 'GET',
    url: `/v1_0/sms/codes/${mobile}`
  })
}
